package com.cskaoyan.gateway.form.shopping;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@ApiModel
public class AddCartForm {

    @ApiModelProperty(name = "userId", value = "⽤户ID")
    private Long userId;

    @ApiModelProperty(name = "productId", value = "产品ID")
    private Long productId;

    @ApiModelProperty(name = "productNum", value = "商品数量")
    private Integer productNum;

    public AddCartForm() {
    }

    public AddCartForm(Long userId, Long productId, Integer productNum) {
        this.userId = userId;
        this.productId = productId;
        this.productNum = productNum;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Integer getProductNum() {
        return productNum;
    }

    public void setProductNum(Integer productNum) {
        this.productNum = productNum;
    }

    @Override
    public String toString() {
        return "AddCartForm{" +
                "userId=" + userId +
                ", productId=" + productId +
                ", productNum=" + productNum +
                '}';
    }
}
